package com.miplus.ccrm.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 委外机构管理表
 * @TableName SYS_OUTSOURCING
 */
@TableName(value ="SYS_OUTSOURCING")
@Data
public class SysOutsourcing implements Serializable {
    /**
     * 委外机构ID
     */
    @TableId
    private String grpid;

    /**
     * 委外机构名称
     */
    private String grpname;

    /**
     * 委外机构地址
     */
    private String address;

    /**
     * 联系人姓名
     */
    private String contactname;

    /**
     * 联系人联系方式
     */
    private String contactphone;

    /**
     * 联系人邮箱
     */
    private String contactmail;

    /**
     * 开始时间
     */
    private Date startdt;

    /**
     * 结束时间
     */
    private Date enddt;

    /**
     * 0: 停用，1：启用
     */
    private Integer status;

    /**
     * 审核人
     */
    private String auditusr;

    /**
     * 审核状态
     */
    private Integer auditstatus;

    /**
     * 审核原因
     */
    private String auditdsc;

    /**
     * 审核时间
     */
    private Date auditdt;

    /**
     * 创建时间
     */
    private Date crdt;

    /**
     * 创建人
     */
    private String crusr;

    /**
     * 修改时间
     */
    private Date mddt;

    /**
     * 修改人
     */
    private String mdusr;

    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysOutsourcing other = (SysOutsourcing) that;
        return (this.getGrpid() == null ? other.getGrpid() == null : this.getGrpid().equals(other.getGrpid()))
            && (this.getGrpname() == null ? other.getGrpname() == null : this.getGrpname().equals(other.getGrpname()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getContactname() == null ? other.getContactname() == null : this.getContactname().equals(other.getContactname()))
            && (this.getContactphone() == null ? other.getContactphone() == null : this.getContactphone().equals(other.getContactphone()))
            && (this.getContactmail() == null ? other.getContactmail() == null : this.getContactmail().equals(other.getContactmail()))
            && (this.getStartdt() == null ? other.getStartdt() == null : this.getStartdt().equals(other.getStartdt()))
            && (this.getEnddt() == null ? other.getEnddt() == null : this.getEnddt().equals(other.getEnddt()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getAuditusr() == null ? other.getAuditusr() == null : this.getAuditusr().equals(other.getAuditusr()))
            && (this.getAuditstatus() == null ? other.getAuditstatus() == null : this.getAuditstatus().equals(other.getAuditstatus()))
            && (this.getAuditdsc() == null ? other.getAuditdsc() == null : this.getAuditdsc().equals(other.getAuditdsc()))
            && (this.getAuditdt() == null ? other.getAuditdt() == null : this.getAuditdt().equals(other.getAuditdt()))
            && (this.getCrdt() == null ? other.getCrdt() == null : this.getCrdt().equals(other.getCrdt()))
            && (this.getCrusr() == null ? other.getCrusr() == null : this.getCrusr().equals(other.getCrusr()))
            && (this.getMddt() == null ? other.getMddt() == null : this.getMddt().equals(other.getMddt()))
            && (this.getMdusr() == null ? other.getMdusr() == null : this.getMdusr().equals(other.getMdusr()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGrpid() == null) ? 0 : getGrpid().hashCode());
        result = prime * result + ((getGrpname() == null) ? 0 : getGrpname().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getContactname() == null) ? 0 : getContactname().hashCode());
        result = prime * result + ((getContactphone() == null) ? 0 : getContactphone().hashCode());
        result = prime * result + ((getContactmail() == null) ? 0 : getContactmail().hashCode());
        result = prime * result + ((getStartdt() == null) ? 0 : getStartdt().hashCode());
        result = prime * result + ((getEnddt() == null) ? 0 : getEnddt().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getAuditusr() == null) ? 0 : getAuditusr().hashCode());
        result = prime * result + ((getAuditstatus() == null) ? 0 : getAuditstatus().hashCode());
        result = prime * result + ((getAuditdsc() == null) ? 0 : getAuditdsc().hashCode());
        result = prime * result + ((getAuditdt() == null) ? 0 : getAuditdt().hashCode());
        result = prime * result + ((getCrdt() == null) ? 0 : getCrdt().hashCode());
        result = prime * result + ((getCrusr() == null) ? 0 : getCrusr().hashCode());
        result = prime * result + ((getMddt() == null) ? 0 : getMddt().hashCode());
        result = prime * result + ((getMdusr() == null) ? 0 : getMdusr().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", grpid=").append(grpid);
        sb.append(", grpname=").append(grpname);
        sb.append(", address=").append(address);
        sb.append(", contactname=").append(contactname);
        sb.append(", contactphone=").append(contactphone);
        sb.append(", contactmail=").append(contactmail);
        sb.append(", startdt=").append(startdt);
        sb.append(", enddt=").append(enddt);
        sb.append(", status=").append(status);
        sb.append(", auditusr=").append(auditusr);
        sb.append(", auditstatus=").append(auditstatus);
        sb.append(", auditdsc=").append(auditdsc);
        sb.append(", auditdt=").append(auditdt);
        sb.append(", crdt=").append(crdt);
        sb.append(", crusr=").append(crusr);
        sb.append(", mddt=").append(mddt);
        sb.append(", mdusr=").append(mdusr);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}